package reduce.fz.com.reduce.util.oss.model;

import java.util.Comparator;

/**
 * Created by qingshengzheng on 15/11/16.
 */
public class OssPic implements Comparable<OssPic> {


    public int index;
    /**
     * 本地路径
     */
    public String localPath;
    /**
     * 对应oss路径
     */
    public String ossPath;

    public OssPic(String localPath) {
        this.localPath = localPath;
    }

    public OssPic(String localPath, String ossPath) {
        this.localPath = localPath;
        this.ossPath = ossPath;

    }

    public OssPic(int index, String localPath, String ossPath) {
        this.index = index;
        this.localPath = localPath;
        this.ossPath = ossPath;

    }

    @Override
    public int compareTo(OssPic another) {
        return index - another.index;
    }
}
